//
// Created by xqls on 12-8-28.
//
// To change the template use AppCode | Preferences | File Templates.
//


#import <Foundation/Foundation.h>

#import "HPGrowingTextView.h"

@class CMessageSendPanel;

@protocol CMessageSendPanelDelegate<NSObject>

@optional
- (void)MessagePanelSendText:(CMessageSendPanel *)panel text:(NSString *)szStr;

- (BOOL)MessagePanelShouldBeginEdit:(CMessageSendPanel *)panel;

- (BOOL)MessagePanelShouldEndEdit:(CMessageSendPanel *)panel;

- (void)MessagePanelDidBeginEdit:(CMessageSendPanel *)panel;

- (void)MessagePanelDidEndEdit:(CMessageSendPanel *)panel;

- (void)MessagePanelTextDidChanged:(CMessageSendPanel *)panel;

- (void)MessagePanelFrameDidChanged:(CMessageSendPanel *)panel height:(CGFloat)height;

- (void)MessagePanelFrameWillChanged:(CMessageSendPanel *)panel height:(CGFloat)height;

@end

@interface CMessageSendPanel : UIView<HPGrowingTextViewDelegate>
{
    HPGrowingTextView *m_textView;
    
    UIButton* m_doneBtn;

    id<CMessageSendPanelDelegate> m_delegate;
}

@property (nonatomic, assign) id<CMessageSendPanelDelegate> m_delegate;
@property (nonatomic, readonly) HPGrowingTextView* m_textView;
@property (nonatomic, readonly) UIButton* m_doneBtn;

@end